<template>
	<view class="wrap" :style='{"padding-top": statusBarHeight+"rpx"}'>
		<view class="fixed-top" :style='{"padding-top": statusBarHeight+"rpx"}'>
			<view class="acea-row row-middle row-between search-header">
				<!-- <image src="../../static/images/user/leftarrow.png" mode="aspectFill" @click="goback"></image> -->
				<view class="acea-row row-middle search-box">
					<view class="search-ipt">
						<text class="iconfont icon-xiazai5"></text>
						搜索项目
					</view>
				</view>
			</view>
		</view>
		<view class="list">
			<view class="content" @click="toDetailPage">
				<view class="top acea-row row-between row-middle">
					<view class="left acea-row row-middle  ">
						<!-- <image src="../../static/images/user/tip_icon.png" mode="aspectFill"></image> -->
						<text class="enter_limit">水水水水水水水水水水水水水</text>
					</view>
					<view class="right">
						<!-- <image src="../../static/images/user/right_arrow.png" mode=""></image> -->
					</view>
				</view>
				<view class="bottom acea-row row-between row-middle">
					<text class="equie">未审核</text>
					<!-- <image src="../../static/images/gift.png" mode=""></image> -->
					<view class="contents">
						<view class="line limit">
							地址： 长沙市雨花区人民东路
						</view>
						<view class="line">
							开发商： 长沙成城银山房地产开发有限公司
						</view>
						<view class="line">
							总楼成数： 30层
						</view>
						<view class="line">
							开工/交付时间： 2018.12.11-2022.12.12
						</view>
					</view>
				</view>
				<view class="area acea-row row-around row-middle">
					<view class="col_38 acea-row row-column text_c"><text>3000m²</text><text
							class="col_A6 mt_28">总面积数</text></view>
					<view class="col_38 acea-row row-column text_c"><text>1000</text><text
							class="col_A6 mt_28">住宅套数</text></view>
					<view class="col_38 acea-row row-column text_c"><text>10211m²</text><text
							class="col_A6 mt_28">住宅均价</text></view>
					<view class="col_38 acea-row row-column text_c"><text>10211m²</text><text
							class="col_A6 mt_28">商业均价</text></view>
				</view>
				<view class="line_bottom"></view>
				<view class="btns acea-row row-right">
					<view class="btn">
						出租
					</view>
					<view class="btn">
						出售
					</view>
					<view class="btn">
						编辑
					</view>
					<view class="btn">
						删除
					</view>
				</view>
			</view>
			<view class="content" @click="toDetailPage">
				<view class="top acea-row row-between row-middle">
					<view class="left acea-row row-middle  ">
						<!-- <image src="../../static/images/user/tip_icon.png" mode="aspectFill"></image> -->
						<text class="enter_limit">水水水水水水水水水水水水水</text>
					</view>
					<view class="right">
						<!-- <image src="../../static/images/user/right_arrow.png" mode=""></image> -->
					</view>
				</view>
				<view class="bottom acea-row row-between row-middle">
					<text class="equie">未审核</text>
					<!-- <image src="../../static/images/gift.png" mode=""></image> -->
					<view class="contents">
						<view class="line limit">
							地址： 长沙市雨花区人民东路
						</view>
						<view class="line">
							开发商： 长沙成城银山房地产开发有限公司
						</view>
						<view class="line">
							总楼成数： 30层
						</view>
						<view class="line">
							开工/交付时间： 2018.12.11-2022.12.12
						</view>
					</view>
				</view>
				<view class="area acea-row row-around row-middle">
					<view class="col_38 acea-row row-column text_c"><text>3000m²</text><text
							class="col_A6 mt_28">总面积数</text></view>
					<view class="col_38 acea-row row-column text_c"><text>1000</text><text
							class="col_A6 mt_28">住宅套数</text></view>
					<view class="col_38 acea-row row-column text_c"><text>10211m²</text><text
							class="col_A6 mt_28">住宅均价</text></view>
					<view class="col_38 acea-row row-column text_c"><text>10211m²</text><text
							class="col_A6 mt_28">商业均价</text></view>
				</view>
				<view class="line_bottom"></view>
				<view class="btns acea-row row-right">
					<view class="btn">
						出租
					</view>
					<view class="btn">
						出售
					</view>
					<view class="btn">
						编辑
					</view>
					<view class="btn">
						删除
					</view>
				</view>
			</view>
		</view>
		<!-- 底部按钮 -->
		<view class="publish_btn" @click="publish">新增项目</view>
	</view>
</template>

<script>
	var app = getApp();
	export default {
		data() {
			return {
				statusBarHeight: 0,
				city: '武汉',
				shareInfo: {}
			}
		},
		onLoad() {
			// #ifdef MP || APP-PLUS
			let height = app.globalData.navHeight;
			this.statusBarHeight = height;
			// #endif
			// #ifdef H5
			this.statusBarHeight = 20;
			// #endif
		},
		onShow() {
			// if (!this.isLogin) {
			// 	toLogin();
			// } else {
			// 	this.getUserInfo();
			// }
		},
		onHide() {},
		methods: {
			publish() {
				wx.navigateTo({
					url: '/pages/releases/project/project'
				})
			},
			goback() {
				// #ifdef H5
				return history.back();
				// #endif
				// #ifndef H5
				return uni.navigateBack({
					delta: 1,
				})
				// #endif
			},
		},
		onReachBottom() {}
	}
</script>

<style lang="scss" scoped>
	.wrap {
		padding-bottom: 160rpx;
	}
	.col_38 {
		color: #383838;
	}

	.col_A6 {
		color: #A6A6A6;
	}

	.mt_28 {
		margin-top: 28rpx;
	}

	.text_c {
		text-align: center;
	}

	.sys-head {
		width: 100%;
		background: #EE212D;
	}

	.fixed-top {
		width: 100%;
		background: #EE212D;
		position: fixed;
		top: 0;
		left: 0;
		height: 122rpx;
		z-index: 999;
		background: linear-gradient(90deg, #EE212D 0%, #EE212D 100%);
	}

	.search-header {
		width: 100%;
		padding: 26rpx;
		background: #EE212D;

		image {
			width: 28rpx;
			height: 32rpx;
			margin-right: 34rpx;
		}

		.search-map {
			font-size: 22rpx;
			font-weight: 400;
			color: rgba(255, 255, 255, 1);
			text-align: center;

			image {
				width: 40rpx;
				height: 36rpx;
			}
		}
	}

	.search-box {
		// width: 586rpx;
		flex: 1;
		height: 70rpx;
		opacity: 1;
		border-radius: 36rpx;
		background: rgba(255, 255, 255, 1);
		padding: 12rpx 32rpx;

		.search-ipt {
			color: rgba(166, 166, 166, 1);

			text {
				padding: 0 16rpx 0 0rpx;
			}
		}
	}

	.list {
		margin: 154rpx 28rpx 0;
	}

	.content {
		padding: 30rpx 26rpx;
		margin-top: 32rpx;
		background-color: #fff;
		border-radius: 10rpx;

		.top {
			height: 56rpx;
			padding-bottom: 14rpx;
			border-bottom: 2rpx solid #EEEEEE;

			.left {
				image {
					width: 32rpx;
					height: 32rpx;
					margin-right: 12rpx;
				}
			}

			.right {
				image {
					width: 18rpx;
					height: 28rpx;
				}
			}
		}

		.bottom {
			position: relative;
			margin: 16rpx 0;

			image {
				height: 144rpx;
				width: 170rpx;
				border-radius: 10rpx;
				margin-right: 22rpx;
			}

			.contents {
				flex: 1;
				color: #808080;
			}

			.line {
				word-break: break-all;
				line-height: 44rpx;
				font-size: 24rpx;
				color: #808080;
			}

			.equie {
				position: absolute;
				right: 0;
				top: 4rpx;
				color: #EE212D;
				font-size: 24rpx;
			}

			.limit {
				max-width: 350rpx;
			}
		}
	}

	.area {
		margin: 16rpx 0 32rpx;
		background-color: #F7F7F7;
		height: 144rpx;
		border-radius: 4rpx;
		box-sizing: border-box;
		padding: 16rpx 0;
	}

	.line_bottom {
		margin: 0 0 32rpx;
		height: 3rpx;
		background-color: #EEEEEE;
		overflow: hidden;
	}

	.btn {
		width: 100rpx;
		height: 44rpx;
		line-height: 40rpx;
		font-size: 24rpx;
		color: #808080;
		box-sizing: border-box;
		text-align: center;
		border-radius: 4px;
		border: 2rpx solid #E5E5E5;

		&:not(:last-child) {
			margin-right: 24rpx;
		}
	}

	.publish_btn {
		position: fixed;
		left: 50%;
		transform: translateX(-199rpx);
		bottom: 48rpx;
		background-color: #EE212D;
		color: #fff;
		width: 398rpx;
		height: 98rpx;
		line-height: 98rpx;
		color: #fff;
		text-align: center;
		box-shadow: 0px 3px 8px 0px #F50F1E;
		border-radius: 100rpx;
		z-index: 999
	}
    
	.enter_limit {
		word-break: break-all;
		max-width: 380rpx;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
</style>
